package com.cyneck.demo.utils;

import cn.hutool.http.HttpUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>Description: </p>
 *
 * @author Eric Lee
 * @version v1.0.0
 * @since 2020/9/19 00:16
 **/
@Slf4j
public class RemoteImageClient {

    public static String dealImage(String imageFilePath) {
        log.info("人脸检测处理开始");
        imageFilePath = "http://localhost:9100/home/cnn?imagePath=" + imageFilePath;
        String dealedImageFilePath = HttpUtil.get(imageFilePath);
        log.info("人脸检测处理结束：{}", dealedImageFilePath);
        return dealedImageFilePath;
    }
}
